/**
  ******************************************************************************
  * File Name          : ctrl_common.h
  * Description        : Code for data process applications
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */

#ifndef __dk_interface_H
#define __dk_interface_H

#include <stdint.h>
#include <string.h>

#define DKCTR_PT_CHANNEL_ALLNUM   6
#define DKCTR_TG_CHANNEL_ALLNUM   4

typedef struct
{
  uint32_t dkkqtm1;
  uint32_t dkgbtm1;
  uint32_t dkkqtm2;
  uint32_t dkgbtm2;
}Ctrl_DkPtType;

typedef struct
{
  uint8_t       tgjs[DKCTR_TG_CHANNEL_ALLNUM];
  Ctrl_DkPtType dktm[DKCTR_PT_CHANNEL_ALLNUM];
}Ctrl_ParaDKType;

typedef struct
{
  uint8_t ptkg[DKCTR_PT_CHANNEL_ALLNUM];
  uint8_t tgkg[DKCTR_TG_CHANNEL_ALLNUM];
}Ctrl_StateDKType;


extern uint8_t Ctr_CheckDKPara(Ctrl_ParaDKType *para);

#endif /* __ctrl_interface_H */
